home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / DCLAP 6d / dclap6d / SeqPups / appsrc / autoseq.src / Makefile < prev    next >
Makefile  |  1996-07-05  |  5KB  |  140 lines

  1. #
  2. # Makefile
  3. # Reece Hart, reece@ibc.wustl.edu
  4. # for sources developed for CS project
  5. # 94.05.29
  6. #
  7.  
  8. #
  9. # NOTE:
  10. # As of 93.11.18, this source will not compile under g++.  I haven't checked
  11. # into this thoroughly, but the problems seem to be related to namespace clashes
  12. # and known troubles with g++ handling of template classes. (see c++ newsgroups)
  13. CC=CC
  14. cc=cc
  15. CFLAGS=-O
  16. LIBFLAGS=-lm
  17. CCI=/opt/SUNWspro/SC3.0.1/include/CC
  18. INSTDIR=$(HOME)/bin
  19. MANSFX=1
  20. MANDIR=$(HOME)/man/man${MANSFX}
  21. SRCDIR=$(PWD)
  22.  
  23. SHELL=/bin/sh
  24.  
  25. all: autoseq crop
  26.  
  27. fromscratch: cleanest all
  28.  
  29. crop: crop.c
  30.     $(cc) -O -o $@ crop.c
  31.  
  32. autoseq: FileFormat.o CSequence.o CPeakList.o CTrace.o CTraceFile.o autoseq.o
  33.     ### Building $@ from source in $(SRCDIR)/
  34.     $(CC) $(LIBFLAGS) $(CFLAGS) -o $@ \
  35.         FileFormat.o CSequence.o CPeakList.o CTrace.o\
  36.         CTraceFile.o autoseq.o
  37.  
  38. xlate: FileFormat.o CSequence.o CPeakList.o CTrace.o CTraceFile.o xlate.o
  39.     ### Building $@ from source in $(SRCDIR)/
  40.     $(CC) $(LIBFLAGS) $(CFLAGS) -o $@ \
  41.         FileFormat.o CSequence.o CPeakList.o CTrace.o\
  42.         CTraceFile.o xlate.o
  43.  
  44. install: autoseq xlate crop
  45.     ### Installing executable links in $(INSTDIR)/
  46.     ###   and man page link in $(MANDIR)/
  47.     ln -fs $(SRCDIR)/autoseq $(INSTDIR)/autoseq
  48.     ln -fs $(SRCDIR)/xlate $(INSTDIR)/xlate
  49.     ln -fs $(SRCDIR)/crop $(INSTDIR)/crop
  50.     ln -fs $(SRCDIR)/scripts/analyze $(INSTDIR)/analyze
  51.     ln -fs $(SRCDIR)/scripts/analall $(INSTDIR)/analall
  52.     ln -fs $(SRCDIR)/scripts/bpdagg  $(INSTDIR)/bpdagg
  53.     ln -fs $(SRCDIR)/scripts/FastaToTable  $(INSTDIR)/FastaToTable
  54.     ln -fs $(SRCDIR)/scripts/fastatbl  $(INSTDIR)/fastatbl
  55.     ln -fs $(SRCDIR)/autoseq.man $(MANDIR)/autoseq.${MANSFX}
  56.  
  57. unlink:
  58.     ### Removing executable links for this package in $(INSTDIR)/
  59.     ###   and man page link in $(MANDIR)/
  60.     rm -f $(INSTDIR)/autoseq
  61.     rm -f $(INSTDIR)/xlate
  62.     rm -f $(INSTDIR)/crop
  63.     rm -f $(INSTDIR)/analyze
  64.     rm -f $(INSTDIR)/analall
  65.     rm -f $(INSTDIR)/bpdagg
  66.     rm -f $(INSTDIR)/FastaToTable
  67.     rm -f $(INSTDIR)/fastatbl
  68.     rm -f $(MANDIR)/autoseq.${MANSFX}
  69.  
  70. depend:
  71.     makedepend -I$(CCI) *.[cC]
  72.     \rm -f Makefile.bak
  73.     
  74. # inference rule for .C --> .o, %.H --> .o
  75. %.o: %.C
  76.     $(CC) $(CFLAGS) -c $<
  77. %.o: %.H
  78.     $(CC) $(CFLAGS) -c $<
  79.  
  80. # clean: removes stuff that's truly junk
  81. clean:
  82.     ### Removing junk from $(SRCDIR)/
  83.     \rm -f core a.out *~ *.bak
  84.     \rm -f scripts/core scripts/a.out scripts/*~ scripts/*.bak
  85.  
  86. #cleanest: removes everything which can be reconstructed
  87. cleanest: clean unlink
  88.     ### Removing reconstructable targets and by-products from $(SRCDIR)/
  89.     \rm -f autoseq xlate crop
  90.     \rm -f *.o
  91.     \rm -rf ptrepository 
  92.  
  93. # DO NOT DELETE THIS LINE -- make depend depends on it.
  94.  
  95. CPeakList.o: CPeakList.H /opt/SUNWspro/SC3.0.1/include/CC/iostream.h
  96. CPeakList.o: /usr/include/memory.h /opt/SUNWspro/SC3.0.1/include/CC/iomanip.h
  97. CPeakList.o: /opt/SUNWspro/SC3.0.1/include/CC/generic.h CSequence.H
  98. CPeakList.o: /opt/SUNWspro/SC3.0.1/include/CC/fstream.h RInclude.H DNA.H
  99. CPeakList.o: Definitions.H CTrace.H /usr/include/stdio.h /usr/include/math.h
  100. CPeakList.o: RInlines.H /usr/include/stddef.h /usr/include/stdlib.h
  101. CSequence.o: CSequence.H /opt/SUNWspro/SC3.0.1/include/CC/iostream.h
  102. CSequence.o: /usr/include/memory.h /opt/SUNWspro/SC3.0.1/include/CC/fstream.h
  103. CSequence.o: RInclude.H
  104. CTrace.o: CTrace.H /usr/include/stdio.h
  105. CTrace.o: /opt/SUNWspro/SC3.0.1/include/CC/iostream.h /usr/include/memory.h
  106. CTrace.o: /opt/SUNWspro/SC3.0.1/include/CC/fstream.h /usr/include/math.h
  107. CTrace.o: CSequence.H RInclude.H CPeakList.H
  108. CTrace.o: /opt/SUNWspro/SC3.0.1/include/CC/iomanip.h
  109. CTrace.o: /opt/SUNWspro/SC3.0.1/include/CC/generic.h DNA.H Definitions.H
  110. CTrace.o: RInlines.H /usr/include/stddef.h /usr/include/stdlib.h
  111. CTraceFile.o: CTraceFile.H /usr/include/stddef.h CTrace.H
  112. CTraceFile.o: /usr/include/stdio.h
  113. CTraceFile.o: /opt/SUNWspro/SC3.0.1/include/CC/iostream.h
  114. CTraceFile.o: /usr/include/memory.h
  115. CTraceFile.o: /opt/SUNWspro/SC3.0.1/include/CC/fstream.h /usr/include/math.h
  116. CTraceFile.o: CSequence.H RInclude.H CPeakList.H
  117. CTraceFile.o: /opt/SUNWspro/SC3.0.1/include/CC/iomanip.h
  118. CTraceFile.o: /opt/SUNWspro/SC3.0.1/include/CC/generic.h DNA.H Definitions.H
  119. CTraceFile.o: RInlines.H FileFormat.H /usr/include/string.h
  120. CTraceFile.o: /usr/include/ctype.h /usr/include/stdlib.h /usr/include/time.h
  121. FileFormat.o: /usr/include/stddef.h /usr/include/stdio.h
  122. FileFormat.o: /usr/include/string.h FileFormat.H RInclude.H
  123. crop.o: /usr/include/stdio.h
  124. autoseq.o: CTraceFile.H /usr/include/stddef.h CTrace.H /usr/include/stdio.h
  125. autoseq.o: /opt/SUNWspro/SC3.0.1/include/CC/iostream.h /usr/include/memory.h
  126. autoseq.o: /opt/SUNWspro/SC3.0.1/include/CC/fstream.h /usr/include/math.h
  127. autoseq.o: CSequence.H RInclude.H CPeakList.H
  128. autoseq.o: /opt/SUNWspro/SC3.0.1/include/CC/iomanip.h
  129. autoseq.o: /opt/SUNWspro/SC3.0.1/include/CC/generic.h DNA.H Definitions.H
  130. autoseq.o: RInlines.H FileFormat.H /usr/include/stdlib.h
  131. autoseq.o: /usr/include/string.h
  132. xlate.o: CTraceFile.H /usr/include/stddef.h CTrace.H /usr/include/stdio.h
  133. xlate.o: /opt/SUNWspro/SC3.0.1/include/CC/iostream.h /usr/include/memory.h
  134. xlate.o: /opt/SUNWspro/SC3.0.1/include/CC/fstream.h /usr/include/math.h
  135. xlate.o: CSequence.H RInclude.H CPeakList.H
  136. xlate.o: /opt/SUNWspro/SC3.0.1/include/CC/iomanip.h
  137. xlate.o: /opt/SUNWspro/SC3.0.1/include/CC/generic.h DNA.H Definitions.H
  138. xlate.o: RInlines.H FileFormat.H /usr/include/stdlib.h /usr/include/string.h
  139.